package edu.noteBook.dao;

import edu.noteBook.Pojo.Title;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TitleDao {
    boolean addTitle(@Param("title") String title);


    boolean deleteTitle(@Param("id") Integer id);

    boolean updateTitle(@Param("title") String title,@Param("id") Integer id);


    List<Title> queryAllTitle();


    List<Title> queryTitle(@Param("title") String title);
}
